import Mock from 'mockjs';

const { messages } = Mock.mock({
    'messages|3': [{
        title: '系统维护通知',
        date: '@datetime("2024-MM-dd")',
        text: '@csentence',
    }],
})

Mock.mock('/message/messages', 'post', (config) => {
    return {
        code: '200',
        message: '获取消息成功',
        data: {
            messages
        }
    }
})